package cn.sumpu.app.coolsk.biz;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.coolsk.domain.Hotel;
import cn.sumpu.app.coolsk.domain.Room;
import cn.sumpu.app.coolsk.domain.RoomPrice;
import cn.sumpu.app.coolsk.exception.AppBusinessException;
import cn.sumpu.toolkit.common.page.PageModel;

public interface HotelRoomBiz {
	public Hotel saveHotel(Hotel hotel)throws AppBusinessException;
	
	public Hotel getHotelById(String id)throws AppBusinessException;
	
	public Hotel delHotelById(String id)throws AppBusinessException;
	
	public Room delRoomById(String id)throws AppBusinessException;
	
	public Room getRoomById(String id)throws AppBusinessException;
	
	public List<Room> getHotelRoom(String hotelId)throws AppBusinessException;
	
	public PageModel getHotelRoom(Integer page,Integer pagesize,String name,String hotelId)throws AppBusinessException;
	
	public PageModel getHotelList(Integer page,Integer pagesize,String name) throws AppBusinessException;
	
	public PageModel searchHotel(Integer page,String city,String name,Integer level,String priceRange,String sort) throws AppBusinessException;
	
	public PageModel getHotelList(Integer page,Integer pagesize,String name,String city) throws AppBusinessException;
	
	public void saveRoom(String hotelId,String rList)throws AppBusinessException;
	
	public Room saveRoom(Room room)throws AppBusinessException;
	
	public void saveRoomPrice(String roomId,String rpList)throws AppBusinessException;
	
	public String shareHotel(String hotelId,String weiboType)throws AppBusinessException;
	
	public List<RoomPrice> getRoomPrice(String roomId)throws AppBusinessException;
	
	public List<RoomPrice> resRoomPriceList(String roomId)throws AppBusinessException;
	
	public RoomPrice getRoomDayPrice(Room room,String date)throws AppBusinessException;
	
	public void sendHotelFax(String orderId)throws AppBusinessException;
	
	public List<Hotel> getHotel(Map<String,Object> map)throws AppBusinessException;
	
}
